
***USE: "Lone Actor Radicalisation and Terrorism (Lart) Dataset, 1991-2022, POP_final.dta"

*Figure 1: Lone-actor terrorist incidents per ideology 

*Greating dummy variables for types of lone-actor ideology
generate Incel = 0
replace Incel = 1 if Ideology==1
gen Leftwing = 0
replace Leftwing = 1 if Ideology==2
gen Other = 0
replace Other = 1 if Ideology==3|Ideology==8
gen Islamist = 0
replace Islamist = 1 if Ideology==4 & Religious==3
gen Rightwing = 0
replace Rightwing = 1 if Ideology==6
gen Single = 0
replace Single = 1 if Ideology==7

*Creating pie chart showing distribution of lone-actor incidents per ideology
graph pie Rightwing Islamist Leftwing Incel Single Other


*Figure 2: Lone-acor terrorist incidents per year
histogram Year, discrete frequency addlabels gap(1) ytitle(Number og lone actor incidents) xtitle(Year)


**********************************************************************************************************************

*Extracting count of lone-actor jihadist cases in Europe, 2014-2019, from the LART Dataset
*used to compile "Jihadist attacks in Europe Dataset, 2014-2019.dta"
tab Year Religious if Religious==3 & Country=="Belgium" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="France" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="UK" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Germany" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Denmark" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Spain" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Finland" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Sweden" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Austria" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="Italy" & Year>=2014 & Year<=2019
tab Year Religious if Religious==3 & Country=="The Netherlands" & Year>=2014 & Year<=2019


***USE: "Jihadist attacks in Europe Dataset, 2014-2019_final.dta"

*Figure 3: Jihadist terrorist incidents in Europe 2014-2019
graph bar Group Lone, over(Year) ytitle(Number of incidents) scheme(s1mono) 

*Figure 4: Jihadist lone-actor terrorist incidents 2014-2019, per country
graph bar Germany France Belgium UK, over(Year) stack ytitle(Number of incidents) scheme(s1mono)
